package com.atguigu.mediator;

public class TV extends Colleague {
    public TV(Mediator mediator, String name) {
        super(mediator, name);
        mediator.register(name, this);
    }

    public void startTV() {
        System.out.println("It's time to StartTv!");
    }

    public void StopTV() {
        System.out.println("StopTv!");
    }

    @Override
    public void sendMessage(int stateChange) {
        getMediator().getMessage(stateChange, getName());
    }
}
